--[[
<movevent type="AddItem" tileitem="1" itemid="1481-1484" event="script" value="RPG/coalbasin.lua"/>
<movevent type="AddItem" tileitem="1" itemid="2601-2604" event="script" value="RPG/coalbasin.lua"/>
]]

local coalbasin_table = { --- [moveitem.itemid] = {oldCount, newId, newCount (nil = 1), effect (nil = standard)}
		--- IRON
		[2077] = {newId = 5880, newCount = 4, effect = 6}, 		--- royal fanfare
		[2234] = {newId = 5880, newCount = 12, effect = 6}, 	--- broken sword
		[2256] = {newId = 5880, newCount = 1, effect = 6}, 		--- metal trash
		[2257] = {newId = 5880, newCount = 1, effect = 6}, 		--- metal trash
		[2258] = {newId = 2148, newCount = 10, effect = 6}, 	--- golden trash
		[2376] = {newId = 5880, newCount = 12, effect = 6}, 	--- sword
		[2381] = {newId = 5880, newCount = 6, effect = 6}, 		--- halberd
		[2385] = {newId = 5880, newCount = 12, effect = 6}, 	--- sabre
		[2394] = {newId = 5880, newCount = 6, effect = 6}, 		--- morning star
		[2397] = {newId = 5880, newCount = 7, effect = 6}, 		--- longsword
		[2398] = {newId = 5880, newCount = 3, effect = 6}, 		--- mace
		[2403] = {newId = 5880, newCount = 1, effect = 6}, 		--- knife
		[2404] = {newId = 5880, newCount = 1, effect = 6}, 		--- combat knife
		[2406] = {newId = 5880, newCount = 2, effect = 6},		--- short
		[2412] = {newId = 5880, newCount = 20, effect = 6},		--- katana
		[2420] = {newId = 5880, newCount = 2, effect = 6}, 		--- machete
		[2433] = {newId = 5880, newCount = 9, effect = 6}, 		--- clerical mace
		[2438] = {newId = 5880, newCount = 12, effect = 6}, 	--- epee
		[2457] = {newId = 5880, newCount = 7, effect = 6}, 		--- steel helmet
		[2458] = {newId = 5880, newCount = 7, effect = 6}, 		--- chain helmet
		[2460] = {newId = 5880, newCount = 8, effect = 6}, 		--- brass helmet
		[2463] = {newId = 5880, newCount = 27, effect = 6}, 	--- plate armor
		[2464] = {newId = 5880, newCount = 3, effect = 6}, 		--- chain armor
		[2480] = {newId = 5880, newCount = 3, effect = 6}, 		--- legion helmet
		[2483] = {newId = 5880, newCount = 9, effect = 6}, 		--- scale armor
		[2509] = {newId = 5880, newCount = 7, effect = 6}, 		--- steel shield
		[2510] = {newId = 5880, newCount = 9, effect = 6}, 		--- plate shield
		[2513] = {newId = 5880, newCount = 20, effect = 6}, 	--- battle shield
		[2548] = {newId = 5880, newCount = 7, effect = 6}, 		--- pitch fork
		[2550] = {newId = 5880, newCount = 6, effect = 6}, 		--- scythe
		[2553] = {newId = 5880, newCount = 3, effect = 6}, 		--- pick
		[2554] = {newId = 5880, newCount = 7, effect = 6}, 		--- shovel
		[2557] = {newId = 5880, newCount = 6, effect = 6}, 		--- carp hammer
		[2558] = {newId = 5880, newCount = 3, effect = 6}, 		--- saw
		[2559] = {newId = 5880, newCount = 5, effect = 6}, 		--- small axe
		[2561] = {newId = 5880, newCount = 4, effect = 6}, 		--- legion helmet
		[2562] = {newId = 5880, newCount = 10, effect = 6}, 	--- pot
		[2571] = {newId = 5880, newCount = 2, effect = 6}, 		--- bowl
		[2574] = {newId = 5880, newCount = 2, effect = 6}, 		--- white vase
		[2578] = {newId = 5880, newCount = 2, effect = 6}, 		--- trap
		[2647] = {newId = 5880, newCount = 23, effect = 6}, 	--- plate legs
		[2648] = {newId = 5880, newCount = 10, effect = 6}, 	--- chain legs
		[6534] = {newId = 5880, newCount = 7, effect = 6}, 		--- imperor trident
		[8602] = {newId = 5880, newCount = 28, effect = 6}, 	--- jagged sword
		[8601] = {newId = 5880, newCount = 13, effect = 6}, 	--- steel axe

		--- GOLD
		[2075] = {newId = 9971, newCount = 1, effect = 6}, 		--- simple fanfare
		[2076] = {newId = 9971, newCount = 1, effect = 6}, 		--- fanfare

		[2157] = {oldCount = 50, newId = 9971, effect = 6},		--- golden nugget
	}


function onAddItem(moveitem, tileitem, position, cid)
	craftingMovements(moveitem, tileitem, position, coalbasin_table[moveitem.itemid])
	return true
end
